package com.oct.ywsc.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName(value="real_gz_msg_conf")
@Data
public class GzConfigEntity {

    /**
     * `id` int(11) NOT NULL AUTO_INCREMENT,
     *   `gz_name` varchar(500) DEFAULT NULL COMMENT '规则名',
     *   `table_name` varchar(100) NOT NULL COMMENT '规则适用表名',
     *   `op_type` varchar(10) NOT NULL COMMENT '规则适用操作类型 I U D',
     *   `gz_sql` text NOT NULL COMMENT '规则查询语句',
     *   `gz_param` varchar(500) DEFAULT NULL COMMENT '规则查询语句参数名；多参数以英文逗号分隔',
     *   `resource_topic` varchar(100) NOT NULL COMMENT '消息推送topic',
     *   `resource_filed` varchar(500) DEFAULT NULL COMMENT 'kafka消息要显示字段，如不填写则gz_sql查询结果全部输出',
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "gz_name")
    private String gzName;
    @TableField(value = "table_name")
    private String tableName;
    @TableField(value = "op_type")
    private String opType;
    @TableField(value = "gz_sql")
    private String gzSql;
    @TableField(value = "gz_param")
    private String gzParam;
    @TableField(value = "resource_topic")
    private String resourceTopic;
    @TableField(value = "resource_filed")
    private String resourceFiled;



}
